﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Threading;
using System.Globalization;
using Nivdal.AuxCode;

namespace Nivdal
{
    public partial class GeneralMessage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Title = Resources.Resource.Default_PageTitle + ", " + Resources.Resource.GeneralMessage_PageTitle;
            string MessageString = null;
            if (Request.QueryString["MessageString"] != null)
                MessageString = Request.QueryString["MessageString"].ToString();
            //if (QueryString != null)
            if (MessageString == "l4OF1EOTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.l4OF1EOTHJA;
            if (MessageString == "Q4OFsdwsTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.Q4OFsdwsTHJA;
            if (MessageString == "Q4OQX1EOTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.Q4OQX1EOTHJA;
            if (MessageString == "Z4331EOTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.Z4331EOTHJA;
            if (MessageString == "dsw4331EOTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.dsw4331EOTHJA;
            if (MessageString == "l43jOTHBB")
                ShowErrorMessageLabel.Text = Resources.Resource.l43jOTHBB;
            if (MessageString == "l43ZZOTLOB")
                ShowErrorMessageLabel.Text = Resources.Resource.l43ZZOTLOB;
            if (MessageString == "l43Z1kzbrbB")
                ShowErrorMessageLabel.Text = Resources.Resource.l43Z1kzbrbB;
            if (MessageString == "l43ATUOTLOB")
                ShowErrorMessageLabel.Text = Resources.Resource.l43ATUOTLOB;
            if (MessageString == "ko3ATUOTLOB")
                ShowErrorMessageLabel.Text = Resources.Resource.ko3ATUOTLOB;
            if (MessageString == "QAZ3AtytyUOTLOB")
                ShowErrorMessageLabel.Text = Resources.Resource.QAZ3AtytyUOTLOB;
            if (MessageString == "QAZ3AlalaAXHLOB")
                ShowErrorMessageLabel.Text = Resources.Resource.QAZ3AlalaAXHLOB;
            if (MessageString == "M74ggdizz5wfeh")
                ShowErrorMessageLabel.Text = Resources.Resource.M74ggdizz5wfeh;
            if (MessageString == "UI33ggdizz5qwedw")
                ShowErrorMessageLabel.Text = Resources.Resource.UI33ggdizz5qwedw;
            if (MessageString == "azx4qaMM1qvPOTHJA")
                ShowErrorMessageLabel.Text = Resources.Resource.azx4qaMM1qvPOTHJA;
            if (MessageString == "gfkkjFSDei3w7lzTD")
                ShowErrorMessageLabel.Text = Resources.Resource.gfkkjFSDei3w7lzTD;
            if (MessageString == "kAc7jmmMiAwhLOO")
                ShowErrorMessageLabel.Text = Resources.Resource.kAc7jmmMiAwhLOO;
            if (MessageString == "VORRAVORRAVORRA")
                ShowErrorMessageLabel.Text = Resources.Resource.VORRAVORRAVORRA;
            if (MessageString == "k882m299nnqmhtsd")
                ShowErrorMessageLabel.Text = Resources.Resource.k882m299nnqmhtsd;
            if (MessageString == "ubhelk50zgghg")
                ShowErrorMessageLabel.Text = Resources.Resource.ubhelk50zgghg;
            if (MessageString == "haoihxrjmm")
                ShowErrorMessageLabel.Text = Resources.Resource.haoihxrjmm;
            //else
            // ShowErrorMessageLabel.Text = MessageString;
        }

        protected override void InitializeCulture()
        {
            OnlineUser ou = (OnlineUser)Session["User"];
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(ou.UICulture);
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(ou.Culture);
        }
    }
}